Learn R Programming

sfcurve (version 1.0.0)

[.sfc_sequence: Utility functions

Description

Utility functions

Usage

# S3 method for sfc_sequence
[(x, i)

# S3 method for sfc_sequence [(x, i) <- value

# S3 method for sfc_sequence length(x)

# S3 method for sfc_sequence c(...)

Value

length.sfc_sequence() returns an integer scalar.

c.sfc_sequence() returns an sfc_sequence object.

Arguments

x

An sfc_sequence object.

i

Numeric index.

value

An sfc_sequence object.

...

A list of sfc_sequence objects or other arguments.

Details

For efficiency, c.sfc_sequence() does not check whether the input sfc_sequence objects are compatible.

Examples

Run this code
p = sfc_sequence("ABCDEFGH")
p
p[1:4]
p[1:4] = p[8:5]
p
length(p)
c(p, p)

Run the code above in your browser using DataLab